package com.simple.card.repository.tenantemail;

import com.simple.card.dataobject.tenantemail.TBill;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TBillRepository {

    @Select("select * from t_bill where userId = #{userId} order by billDate desc limit 12")
    public List<TBill> findByUserId(String userId);

    @Select("select * from t_bill where billId = #{billId}")
    public TBill findOne(String billId);
}
